﻿
namespace Marmat.Forms.Views
{
    namespace DataGrid
    {
        public class ColumnHeaderCustomDrawEventArgs : Grid.ColumnHeaderCustomDrawEventArgs
        {
            internal ColumnHeaderCustomDrawEventArgs(DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs Info) : base(Info)
            {
            }

            public new Forms.DataGrid GridControl
            {
                get
                {
                    return (Forms.DataGrid)this._GridControl;
                }
            }

            public new Column Column
            {
                get
                {
                    if (this.Info.Column is object)
                    {
                        return this.GridControl.Columns[this.Info.Column.FieldName];
                    }

                    return null;
                }
            }
        }
    }
}